// ignore_for_file: file_names

import 'package:flutter/material.dart';

class ImageComp extends StatelessWidget {
  const ImageComp({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Image组件'),
          backgroundColor: Colors.pink,
        ),
        body: Center(
          child: Container(
            width: 300,
            height: 400,
            color: Colors.green,
            // 2. 本地图片
            child: Image.asset(
              'assets/qiche.png',
              width: 40,
              height: 40,
            ),
          ),
        ));
  }
}
